<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>
<table id="dataTable" border="1" cellspacing="0" cellpadding="0" style="text-align: center;">
    <tr>
        <th colspan="6">User Info</th>
    </tr>
  <tr>
        <th>id</th>
        <th>username</th>
        <th>password</th>
        <th>gender</th>
        <th>age</th>
        <th>email</th>
    </tr>
  <tr th:each="user:${userList}">

       <td th:text="${user.id}"></td>
       <td th:text="${user.username}"></td>
       <td th:text="${user.password}"></td>
       <td th:text="${user.gender}"></td>
       <td th:text="${user.age}"></td>
       <td th:text="${user.email}"></td>

   </tr>


</table>


</body>
</html>